package com.bawei.hostapp

import android.content.ComponentName
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.os.Message
import android.view.View
import android.widget.BaseAdapter
import android.widget.Toast
import dalvik.system.DexClassLoader
import dalvik.system.PathClassLoader

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

    }

    fun start(view: View) {
        Toast.makeText(this,"jaj",Toast.LENGTH_SHORT).show()
        val intent = Intent()
        intent.setComponent(ComponentName("com.bawei.pluginapp","com.bawei.pluginapp.MainActivity"))
        startActivity(intent)

    }
}